<?php
/**
 * Created by PhpStorm.
 * User: Machenike
 * Date: 2019/12/26
 * Time: 20:38
 */

namespace App\Event;


use App\Entity\MoneyPayOrder;
use App\Entity\User;

class PayEvent
{
    //用户注册监听
    public const PAY_CHARGE = "event.my.pay.charge";
    public const PAY_ORDER = "event.my.pay.order";

    private $payOrder;

    public function __construct(MoneyPayOrder $payOrder)
    {
        $this->payOrder = $payOrder;
    }

    /**
     * @return User
     */
    public function getPayOrder()
    {
        return $this->payOrder;
    }

}
